
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" close="true">
        <span aria-hidden="true">×</span>
    </button>
    <h4 class="modal-title">
        <span class="fa fa-legal"></span>&nbsp;修改权限
    </h4>
</div>
<div class="modal-body">
    <form class="form-horizontal layui-form">

        <div class="form-group">
            <label class="col-sm-3 control-label">*名称:</label>
            <div class="col-sm-8">
                <input class="form-control" name="name" placeholder="名称" value="{$detail.name}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">*Key:</label>
            <div class="col-sm-8">
                <input class="form-control" name="key" placeholder="Key" value="{$detail.key}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">*值:</label>
            <div class="col-sm-8">
                <input class="form-control" name="value" placeholder="值" value="{$detail.value}">
                <p style="line-height:25px;font-size:12px;color:red">以"|"隔开</p>
            </div>
        </div>
        <input type="hidden" class="form-control" name="id"  value="{$detail.id}">

    </form>
</div>
<div class="modal-footer">
    <button type="button" class="layui-btn layui-btn-primary" close="true">关闭</button>
    <button type="button" class="layui-btn" _event="add">保存</button>
</div>
<script>
    layui.use(['form'], function() {
        var form = layui.form
            , layer = layui.layer;
        var layedit = layui.layedit;
        var  tree = layui.tree;
        var util = layui.util;

        layui.form.render('select');
        form.render();
    });
</script>